package fr.thread.threadfactory.activity.note;

import android.app.Activity;
import android.os.Bundle;
import android.widget.RatingBar;
import android.widget.RatingBar.OnRatingBarChangeListener;
import android.widget.Toast;
import fr.thread.threadfactory.R;

/**
 * More UI attempt
 * @author thread
 *
 */
public class NoteActivity extends Activity {

	@Override
	public void onCreate(Bundle savedCurrentActivity){
		super.onCreate(savedCurrentActivity);
		
		setContentView(R.layout.noteactivity);
		
		RatingBar ratingBar = (RatingBar)findViewById(R.id.rateAndroid);
		ratingBar.setOnRatingBarChangeListener(new OnRatingBarChangeListener() {
			
			@Override
			public void onRatingChanged(RatingBar ratingBar, float rating,
					boolean fromUser) {
				Toast.makeText(getApplicationContext(), "Note:"+rating, Toast.LENGTH_LONG).show();
				
			}
		});
	}
	
}
